﻿using B.Auth.Domain.Entity;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.Auth.Domain
{
    public class Mycontext : DbContext
    {
        public Mycontext(DbContextOptions options) : base(options)
        {
        }

       public DbSet<User> users { get; set; }
       public DbSet<County> counties { get; set; }
        public DbSet<Province> provinces { get; set; }
        public DbSet<City> cities { get; set; }
        public DbSet<RoleModel> roles { get; set; }

        public DbSet<RoleUser> roleUsers { get; set; }
        public DbSet<MenuModel> menuModels { get; set; }
        public DbSet<RoleMenuModel> roleMenuModels { get; set; }

        public DbSet<LeaveModel> leaves { get; set; }
        public DbSet<DepartmentModel> depart { get; set; }

    }
}
